import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routerList = [
  {
    path: '/',
    name: 'login',
    component: () => import('@/views/Login')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('@/views/Home')
  },
  {
    path: '/txtDetail',
    name: 'txtDetail',
    component: () => import('@/views/TxtDetail')
  },
  {
    path: '*',
    name: '404',
    component: () => import('@/components/common/404')
  }
]

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: routerList
})
